Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addresses issues with #hmset not string-ifying keys, and not accepting Array as only arg. #173

Merged
merged 4 commits into from
Oct 10, 2019

Conversation

JeffLuckett
Copy link

@JeffLuckett JeffLuckett commented Oct 7, 2019

This PR addresses #170

HashMethods was not converting keys to strings when initially creating a Hash key, leading to inability to use del method and other issues.

I've also addressed the issue raise in #134. Allows .hmset to accept an array as its only argument. eg: mr.hmset([:fee, :fi, :fo]).

Like redis-rb, it treats the first Array element as the key, and the remaining elements as K, V pairs. The other tests the method performed before this change still work. If the Array provided does not contain an odd number of elements (size >= 3), the same Redis::CommandError is raised as before.

@JeffLuckett JeffLuckett changed the title Fixes hash keys Addresses issues with .hmset not string-ifying keys, and not accepting Array as only arg. Oct 9, 2019
@JeffLuckett JeffLuckett changed the title Addresses issues with .hmset not string-ifying keys, and not accepting Array as only arg. Addresses issues with #hmset not string-ifying keys, and not accepting Array as only arg. Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants